.class public Les/lw;
.super Lcom/estrongs/android/ui/dialog/x0;
.source "AutoBackupPayDialog.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private b:Landroid/app/Activity;

.field private c:Lcom/estrongs/android/statistics/TraceRoute;

.field private d:Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;

.field private e:I

.field private f:Ljava/lang/String;

.field private g:Lcom/estrongs/android/pop/app/premium/c$a;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/estrongs/android/statistics/TraceRoute;I)V
    .locals 1
    .param p1    # Landroid/app/Activity;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Lcom/estrongs/android/statistics/TraceRoute;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/x0;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Les/lw;->g:Lcom/estrongs/android/pop/app/premium/c$a;

    .line 3
    iput-object p1, p0, Les/lw;->b:Landroid/app/Activity;

    .line 4
    iput-object p2, p0, Les/lw;->c:Lcom/estrongs/android/statistics/TraceRoute;

    .line 5
    iput p3, p0, Les/lw;->e:I

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 2

    .line 3
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "action"

    .line 4
    invoke-virtual {v0, v1, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string p1, "page_type"

    .line 5
    iget v1, p0, Les/lw;->e:I

    invoke-virtual {v0, p1, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 6
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string v1, "abp_mk"

    invoke-virtual {p1, v1, v0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method


# virtual methods
.method public a(Ljava/lang/Object;)V
    .locals 1

    .line 1
    instance-of v0, p1, Lcom/estrongs/android/pop/app/premium/c$a;

    if-eqz v0, :cond_0

    .line 2
    check-cast p1, Lcom/estrongs/android/pop/app/premium/c$a;

    iput-object p1, p0, Les/lw;->g:Lcom/estrongs/android/pop/app/premium/c$a;

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    const v0, 0x7f09022f

    if-eq p1, v0, :cond_4

    const v0, 0x7f090ce1

    if-eq p1, v0, :cond_3

    const v0, 0x7f090cee

    if-eq p1, v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object p1, p0, Les/lw;->g:Lcom/estrongs/android/pop/app/premium/c$a;

    if-nez p1, :cond_1

    return-void

    .line 3
    :cond_1
    invoke-static {}, Les/wk;->f()Les/wk$b;

    move-result-object p1

    const/16 v0, 0x11

    .line 4
    invoke-virtual {p1, v0}, Les/wk$b;->a(I)Les/wk$b;

    iget-object v0, p0, Les/lw;->b:Landroid/app/Activity;

    check-cast v0, Landroidx/appcompat/app/AppCompatActivity;

    .line 5
    invoke-virtual {p1, v0}, Les/wk$b;->a(Landroidx/appcompat/app/AppCompatActivity;)Les/wk$b;

    iget-object v0, p0, Les/lw;->c:Lcom/estrongs/android/statistics/TraceRoute;

    .line 6
    invoke-virtual {p1, v0}, Les/wk$b;->a(Lcom/estrongs/android/statistics/TraceRoute;)Les/wk$b;

    .line 7
    iget-object v0, p0, Les/lw;->g:Lcom/estrongs/android/pop/app/premium/c$a;

    if-eqz v0, :cond_2

    .line 8
    iget-object v0, v0, Lcom/estrongs/android/pop/app/premium/c$a;->a:Ljava/lang/String;

    .line 9
    :cond_2
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v0

    invoke-virtual {p1}, Les/wk$b;->a()Les/wk;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/b00;->a(Les/wk;)V

    const-string p1, "click"

    .line 10
    invoke-direct {p0, p1}, Les/lw;->a(Ljava/lang/String;)V

    goto :goto_0

    .line 11
    :cond_3
    invoke-virtual {p0}, Landroid/app/Dialog;->dismiss()V

    .line 12
    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object p1

    const-string v0, "AbakDialog"

    invoke-static {p1, v0}, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 13
    :cond_4
    invoke-virtual {p0}, Landroid/app/Dialog;->dismiss()V

    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5

    .line 1
    invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0c00d3

    .line 2
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->setContentView(I)V

    const p1, 0x7f090ce1

    .line 3
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 4
    invoke-virtual {p1}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;

    move-result-object v0

    invoke-virtual {v0}, Landroid/text/TextPaint;->getFlags()I

    move-result v0

    .line 5
    invoke-virtual {p1}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;

    move-result-object v1

    const/16 v2, 0x8

    or-int/2addr v0, v2

    invoke-virtual {v1, v0}, Landroid/text/TextPaint;->setFlags(I)V

    .line 6
    invoke-virtual {p1, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f090d14

    .line 7
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f090cee

    .line 8
    invoke-virtual {p0, v1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;

    iput-object v1, p0, Les/lw;->d:Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;

    .line 9
    invoke-virtual {v1, p0}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v1, 0x7f090ced

    .line 10
    invoke-virtual {p0, v1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 11
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V

    const/4 v1, 0x0

    .line 12
    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 13
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 14
    iget-object p1, p0, Les/lw;->g:Lcom/estrongs/android/pop/app/premium/c$a;

    if-eqz p1, :cond_1

    .line 15
    iget-object v2, p0, Les/lw;->d:Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/premium/c$a;->a()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Lcom/estrongs/android/pop/app/premium/newui/PremiumPayButton;->setText(Ljava/lang/CharSequence;)V

    .line 16
    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object p1

    iget-object v2, p0, Les/lw;->g:Lcom/estrongs/android/pop/app/premium/c$a;

    iget-object v2, v2, Lcom/estrongs/android/pop/app/premium/c$a;->b:Ljava/lang/String;

    const-string v3, "1"

    .line 17
    invoke-static {v2, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_0

    const v2, 0x7f1101aa

    goto :goto_0

    :cond_0
    const v2, 0x7f1101ab

    :goto_0
    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    iget-object v4, p0, Les/lw;->g:Lcom/estrongs/android/pop/app/premium/c$a;

    iget-object v4, v4, Lcom/estrongs/android/pop/app/premium/c$a;->c:Ljava/lang/String;

    aput-object v4, v3, v1

    .line 18
    invoke-virtual {p1, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 19
    iget-object p1, p0, Les/lw;->g:Lcom/estrongs/android/pop/app/premium/c$a;

    iget-object p1, p1, Lcom/estrongs/android/pop/app/premium/c$a;->a:Ljava/lang/String;

    iput-object p1, p0, Les/lw;->f:Ljava/lang/String;

    :cond_1
    const p1, 0x7f090ce3

    .line 20
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 21
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f110193

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " : \n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f110173

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 22
    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const p1, 0x7f09022f

    .line 23
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const-string p1, "show"

    .line 24
    invoke-direct {p0, p1}, Les/lw;->a(Ljava/lang/String;)V

    .line 25
    iget-object p1, p0, Les/lw;->c:Lcom/estrongs/android/statistics/TraceRoute;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/log/viewHolder/a;->a(Lcom/estrongs/android/statistics/TraceRoute;)V

    return-void
.end method

.method public show()V
    .locals 1

    .line 1
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v0

    invoke-virtual {v0}, Les/b00;->i()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-super {p0}, Lcom/estrongs/android/ui/dialog/x0;->show()V

    return-void
.end method
